
set WORKSPACE=E:\work\ideaIC-2022.3.3.win\ProjectT\projecttavern

set BYTES_PATH=.\testdata\bytes

set DATA_PATH=..\game-server\src\main\resources\data.dat

set JAVA_PATH=..\excel-data\src\main\java\inutan\data

cd /d %~dp0

.\Luban.ClientServer\Luban.ClientServer.exe -h 127.0.0.1 -j cfg --^
 -d .\__root__.xml ^
 --input_data_dir %WORKSPACE%\Tables ^
 --output_code_dir %JAVA_PATH% ^
 --output_data_dir %BYTES_PATH% ^
 --gen_types code_java_bin,data_bin ^
 -s all 

java -jar createBasicData.jar %BYTES_PATH% %DATA_PATH%

cd %BYTES_PATH%

#for /r %%f in (*.bytes) do del %%f

pause